<?php
$obj = $self->getFormObject();
?>
<div id="general_tab" class="section">
	<div class="section-head">
		<h4>General Information</h4>
	</div>
	<div class="section-fieldset">
		<div class="control-group">
			<label class="control-label" for="txtTitle" >Title</label>
			<div class="controls">
				<input type="text" name="title" id="txtTitle" class="span24" value="<?php echo $obj->getTitle() ?>"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="txtDesc">Description</label>
			<div class="controls">
				<textarea id="txtDesc" name="description" rows="4" class="span24"><?php echo $obj->getDescription() ?></textarea>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="txtContent">Content</label>
			<div class="controls">
				<textarea id="txtContent" name="content" rows="8" class="span24 ckeditor"><?php echo $obj->getContent() ?></textarea>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="selRating">Rating</label>
			<div class="controls">
				<select name="rating">
					<option></option>
					<option value="1" <?php echo $self->getSelect(1, $obj->getRating()) ?> >1</option>
					<option value="2" <?php echo $self->getSelect(2, $obj->getRating()) ?> >2</option>
					<option value="3" <?php echo $self->getSelect(3, $obj->getRating()) ?> >3</option>
					<option value="4" <?php echo $self->getSelect(4, $obj->getRating()) ?> >4</option>
					<option value="5" <?php echo $self->getSelect(5, $obj->getRating()) ?> >5</option>
				</select>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="is_visible">Visible</label>
			<div class="controls">
				<select name="is_visible" id="is_visible">
					<option value="1" <?php echo $self->getSelect(1, $obj->getIsVisible()) ?> >Yes</option>
					<option value="0" <?php echo $self->getSelect(0, $obj->getIsVisible()) ?> >No</option>
				</select>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="post_status">Status</label>
			<div class="controls">
				<select name="status" id="post_status">
					<option></option>
					<?php foreach($self->getStatus() as $status): ?>
					<option value="<?php echo $status->getId() ?>" <?php echo $self->getSelect($status->getId(), $obj->getStatus()) ?> ><?php echo $status->getLabel() ?></option>
					<?php endforeach ?>
				</select>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="selCat">Category</label>
			<div class="controls">
				<?php $self->renderChild('category_select'); ?>
			</div>
		</div>
	</div>
</div>